<section class="col-xs-6 movie">
  <div class="cover">
    <%= link_to image_tag(movie.photo_url(:normal),:alt => movie.title),movie_path(movie),:title => movie.title %>
  </div>
  <div class="infos">
    <ul>
      <li class="name">
        <%= movie_title_tag(movie, :allow_year => true) %>
      </li>
      <li class="rank">
        <span class="vote-star-min"><i style="width:<%= movie.average.round(1) * 10 %>%"></i></span>
        <span class="vote-number"> <%= movie.average.round(1) %> </span>
      </li>
      <% if !movie.countries.blank? %>
      <li><label>地区:</label><div class="tags"><%= movie_tags_tag(movie, :countries, :limit => 2) %></div></li>
      <% end %>
      <% if !movie.directors.blank? %>
      <li><label>导演:</label><div class="tags"><%= movie_tags_tag(movie, :directors, :limit => 2) %></div></li>
      <% end %>
      <% if !movie.actors.blank? %>
      <li><label>主演:</label><div class="tags"><%= movie_tags_tag(movie, :actors, :limit => 2) %></div></li>
      <% end %>
      <% if !movie.categories.blank? %>
      <li><label>类型:</label><div class="tags"><%= movie_tags_tag(movie, :categories, :limit => 3) %></div></li>
      <% end %>
      <li><label>资源:</label><div class="tags"><a href="" class="down"><%= movie.attaches.count %> 个下载地址</a></div></li>
	</ul>
    <div class="info"></div>
  </div>
</section>
